﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DbConnectionFile" 
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
           attributeFormDefault="unqualified" 
           elementFormDefault="qualified" 
           xmlns:xs="http://www.w3.org/2001/XMLSchema">


  <xs:complexType name="DbConnectionType">
    <xs:attribute name="connectionName" type="xs:string" use="required"/>
    <xs:attribute name="connectionString" type="xs:string" use="required"/>
    <xs:attribute name="providerName" type="xs:string" use="required"/>
  </xs:complexType>


  <xs:complexType name="DbConnectionListType">
    <xs:sequence>
      <xs:element name="dbConnection" type="DbConnectionType" maxOccurs="unbounded" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  
  
  <xs:element name="dbConnections" type="DbConnectionListType">
    <xs:unique name="DbConnectionUniqueRule">
      <xs:selector xpath="./dbConnection"/>
      <xs:field xpath="@connectionName"/>
    </xs:unique>
  </xs:element>

   
 

</xs:schema>
